import requests

from api import SYSTEM_URL, SESSION


class DeleteUser:

    def __init__(self):
        self.url = SYSTEM_URL + "/api/v1alpha1/users/"
        self.headers = {
            'Cookie': SESSION
        }

    def delete_user(self, username):

        response = requests.delete(self.url + str(username), headers=self.headers)
        return response
